﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<ThesisSystem.Models.Thesis>" %>

<!DOCTYPE html>
<html>
<head>
    <title>Upload</title>
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
    <link href="../../Content/CSS/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-ui-1.8.11.js" type="text/javascript"></script>
    <link href="../../Content/CSS/searchstyle.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="Search_thesis">
        <h3>
            论文上传</h3>
        <div class="sch_area">
            <%-- 
//显示上一步，填写的论文信息
            --%>
            <table class="detail_tb" width="811px">
                <tr>
                    <th class="detail_th">
                        论文标题
                    </th>
                    <td colspan="2">
                        <%: Html.DisplayFor(model => model.ThesisTitle) %>
                    </td>
                </tr>
                <tr>
                    <th class="detail_th">
                        论文类型
                    </th>
                    <td colspan="2">
                        <%: Html.DisplayFor(model => model.ThesisType) %>
                    </td>
                </tr>
                <tr>
                    <th class="detail_th">
                        论文开始时间
                    </th>
                    <td colspan="2">
                        <%: Model.StartDate.ToString("yyyy-MM-dd")%>
                    </td>
                </tr>
                <tr>
                    <th class="detail_th">
                        论文结束时间
                    </th>
                    <td colspan="2">
                        <%:  Model.EndDate.ToString("yyyy-MM-dd") %>
                    </td>
                </tr>
               
            </table>
         </div>
        <% using (Html.BeginForm("Upload", "Theses", FormMethod.Post, new { enctype = "multipart/form-data" }))
           { 
        %>
      <p align="center" style="height: 30px; border: 1px solid #c3e1c9; margin: 1px; padding: 1px">
            <%--   <input type="text" id="txt" name="txt" style="width: 450px" />&nbsp;&nbsp;&nbsp;&nbsp;--%>
            <%--  <input type="button" onmousemove="file0.style.pixelLeft=event.x-60;file0.style.pixelTop=this.offsetTop;"  value="浏览文件…" id="Uploadbtn" onclick="document.getElementById('file0').click();" />--%>
            <input type="file" id="file0" onchange="txt.value=this.value" name="file0" size="70" />
            <input type="submit" value="上传" id="Uploadsubmit" />
        </p>
        <% } %>
    </div>
    <%:Content.Script("jquery-min.js",Url) %>
    <%:Content.Script("jquery-ui-min.js",Url) %>
    <script type="text/javascript">

        $("#file0").button();
        $("#Uploadsubmit").button();
        $("#Uploadbtn").button();
        $("#Back").button();
    
    </script>
</body>
</html>
